package com.lzx.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * @Author: lzx
 * @Date: 2021/3/3 14:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminDto {

    @Email(message = "邮箱格式不符")
    private String email;
    @NotBlank(message = "密码不能为空")
    private String password;
    @NotBlank(message = "姓名不能为空")
    private String name;
    @NotBlank(message = "登录名不能为空")
    private String username;
    @NotBlank(message = "联系方式不能为空")
    private String tel;
}
